package src.main.java.top.htzh.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MoodController {
    @Value("${spring.my.mood.today}")
    private String today;
    @Value("${spring.my.mood.content}")
    private String content;
    @Value("${spring.my.mood.author}")
    private String author;

    @GetMapping("/today")
    public String today() {

        return today + content + author;
    }
}
//根据开关判断返回内容
